package demo;

public class Data {
    public int year = 2024;
    public int month = 4;
    public int day = 5;
    public Data(){
        this(2024,4,5);
    }
    public Data(int year){
        this.year = year;
    }
    public Data(int year,int month){
        this.year = year;
        this.month = month;
    }
    public Data(int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public static void main(String[] args) {
        Data d1 = new Data();
        Data d2 = new Data(2024);
        Data d3 = new Data(2024,4);
        Data d4 = new Data(2024,4,5);
    }
}